/*
 * @Author: AskMeWhy
 * @Date: 2020-12-27 11:58:47
 * @Last Modified by: AskMeWhy
 * @Last Modified time: 2021-01-15 15:20:57
 */
const app = getApp();
const { AskComponent } = app._require("common/index");
const share = app._require("pages/task-share-form/handleShare").default;
AskComponent({
    properties: {
        list: {
            type: Array,
            value: [],
        },
    },
    data: {},
    methods: {
        handleClick(e) {
            let { value: item } = e.detail;
            console.log(item, e.detail);
            this.$emit("item-click", e.detail);
            share.handleForm(
                {
                    taskId: item.taskId,
                    isCms: "0",
                    line: item.index + 1,
                    id: item.id
                },
                "navigateTo"
            );
        }
    },
});
